package com.eightgroups.tces.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import com.eightgroups.common.utils.excel.ExcelField;

import java.io.Serializable;
import java.util.Date;

/**
 * @User Administrator
 * @Date Create in 14:52/2017/11/9
 * @Descriptton { }
 **/
public class TeacherVo extends Teacher {
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 教师工号
     */
    @ExcelField(title = "教师工号",align = 2)
    private String tno;
    /**
     * 密码
     */
    @ExcelField(title = "密码",align = 2)
    private String password;
    /**
     * 教师名
     */
    @ExcelField(title = "教师名",align = 2)
    private String tname;
    /**
     * 系部id
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 系部名称
     */
    @ExcelField(title = "所属系部",align = 2)
    private String dname;
    /**
     * 教师描述
     */
    private String tdescription;
    /**
     * 0 删除 1 正常
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create" ,fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    @Override
    public String getTdescription() {
        return tdescription;
    }

    @Override
    public void setTdescription(String tdescription) {
        this.tdescription = tdescription;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", tno=" + tno +
                ", tname=" + tname +
                ", deptId=" + deptId +
                ", password=" + password +
                ", status=" + status +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ",dname=" + dname +
                ", tdescription" + tdescription +
                "}";
    }
}
